(function() {
	var e = {};
	e.js_debug = false;
	if (window.$CONFIG && typeof ($CONFIG.js_debug_mode) !== "undefined") {
		e.js_debug = $CONFIG.js_debug_mode;
	}
	var d = function() {
		var j = [];
		if (window.$CONFIG && $CONFIG.js_files) {
			var g = 0, k = "", h = Object.prototype.toString.call(
					$CONFIG.js_files).toLowerCase();
			if (h === "[object array]" && $CONFIG.js_files.length > 0) {
				for (g = 0; g < $CONFIG.js_files.length; g++) {
					k = $CONFIG.js_files[g];
					k = k.replace(/^\/*/g, "");
					j.push(k);
				}
			}
		}
		return j;
	};
	var f = document.getElementsByTagName("head")[0];
	var a = function(h) {
		var g = document.createElement("script");
		g.charset = "utf-8";
		g.type = "text/javascript";
		g.src = h;
		if (f) {
			f.appendChild(g);
		}
	};
	var c = function(g) {
		document.writeln('<script type="text/javascript" charset="utf-8" src="'
				+ g + '"><\/script>');
	};
	var b = function() {
		var h = d(), g = 0, j = "";
		for (g = 0; g < h.length; g++) {
			j = h[g];
			if (window.$CONFIG && $CONFIG.js_version) {
				j = j + (j.indexOf("?") > 0 ? "&" : "?") + "version="
						+ $CONFIG.js_version;
			}
			if (e.js_debug) {
				if (window.location.protocol === "https:") {
					j = "/getjs.php?js=" + encodeURIComponent(j);
				} else {
					j = "http://sso.sinajs.cn/" + j;
				}
			} else {
				j = "/js/" + j;
			}
			c(j);
		}
	};
	b();
})();